﻿@using MVC测评.Models;
@{ 
    ViewBag.Title = "Index";
    var data = ViewBag.Person as List<Person>;
}
<table>
    <thead>
        <tr>
            <td>PersonID</td>
            <td>LastName</td>
            <td>FirstName</td>
            <td>HireDate</td>
            <td>EnrollmentDate</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in data)
        {
            <tr>
                <td>@item.PersonID</td>
                <td>@item.LastName</td>
                <td>@item.FirstName</td>
                <td>@item.HireDate</td>
                <td>@item.EnrollmentDate</td>
            </tr>
        }
        
    </tbody>
</table>



